<%@ Reference Page="~/group.aspx" %>
<%@ Reference Control="~/Controls/GroupMsgTabs.ascx" %>
<%@ Page language="vb"  EnableViewStateMac="true" Inherits="_2bMatesSite.create_group" ValidateRequest="false" CodeFile="create_group.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<%@ Register tagprefix="GroupMsgTabs" Tagname="GroupMsgTabs" Src="Controls/GroupMsgTabs.ascx" %>
<table height="100%" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
	<tr>
		<td class="page_title" colspan=3><asp:literal id="litTitle" runat="server">Create a Group</asp:literal></td>
	</tr>
	<tr>
		<td class="main_table_border" vAlign="top" height="100%"><!-- width="556" -->
			<div class="content">
				<table cellSpacing="0" cellPadding="0" width="100%" border="0">
					<GroupMsgTabs:GroupMsgTabs id="ucGroupTabs" runat="server"></GroupMsgTabs:GroupMsgTabs>
					<tr>
						<td align="center" colSpan="6" height="100%">
							<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0"> <!--width="500"-->
								<tr>
									<td class="small" height="10">&nbsp;</td>
								</tr>
								<tr>
									<td>
										<asp:table id="tblTopTable" runat="server" Font-Bold="True" width="100%" CellPadding="0" CellSpacing="0">
											<asp:TableRow>
												<asp:TableCell cssclass="main_text">
													<b><asp:Label id="lblCreateGroupText" runat=server>It does not take long to create a group on 2Bmates. Just enter some basic 
														information below:</asp:label></b></asp:TableCell>
											</asp:TableRow>
										</asp:table></td>
								</tr>
								<tr>
									<td class="small" height="10">&nbsp;</td>
								</tr>
								<tr>
									<td class="small"><img src="images/spacer.gif" width="100%" height="1" class="spacer_color"></td>
								</tr>
								<tr>
									<td vAlign="top">
										<form id="Form1" method="post" runat="server">
											<table cellSpacing="0" cellPadding="0" width="100%" border="0" height="100%" class="main_text_form">
												<tr>
													<td align="left" width="100%" colSpan="2"><br /><asp:literal id="litReqFieldsText" runat=server><font class="notes_text">*</font>indicates required fields</asp:literal></td>
												</tr>
												<tr>
													<td id="error" valign="top" align="left" colspan="2"><asp:validationsummary id="ValidationSummary1" runat="server" cssclass="val_summary" displaymode="List"></asp:validationsummary></td>
												</tr>
												<tr>
													<td colSpan="2"><asp:label id="lblChangesSubmitted" runat="server" CssClass="val_summary" Visible="False">Your profile has been successfully updated.</asp:label></td>
												</tr>
												<tr>
													<td width="35%"><asp:label id="lblGroupName" runat="server" Font-Bold="True">Group Name</asp:label><font class="notes_text">*</font><br></td>
													<td><asp:textbox id="txtGroupName" runat="server" CssClass="mail_field" Width="204px" MaxLength="50"
															ToolTip="Group Name" EnableViewState="False"></asp:textbox><asp:requiredfieldvalidator id="rvGroupName" runat="server" Display="None" ErrorMessage="Please enter group  name"
															ControlToValidate="txtGroupName"></asp:requiredfieldvalidator>
														<asp:CustomValidator id="cvGroupExist" runat="server" ErrorMessage="There is already a group with the same name in this category."
															Display="None"></asp:CustomValidator><asp:customvalidator id="cvHtmlInGroupName" runat="server" controltovalidate="txtGroupName" errormessage="HTML is not allowed in Group Name field" display="None"></asp:customvalidator></td>
												</tr>
												<tr>
													<td><asp:label id="lblGroupCategory" runat="server" Font-Bold="True">Group Category</asp:label><font class="notes_text">*</font></td>
													<td><asp:dropdownlist id=ddlCategories runat="server" CssClass="scrollbar" Width="204px" DataSource="<%# Page %>"></asp:dropdownlist></td>
												</tr>
												<tr>
													<td><asp:label id="lblPublicGroup" runat="server" Font-Bold="True">Public Group</asp:label><font class="notes_text">*</font><br /></td>
													<td align="left"><asp:radiobutton id="rbPublic" runat="server" value="1" GroupName="grpPublic" Checked="True"></asp:radiobutton><font class="radio_text">Yes</font><asp:radiobutton id="rbPrivate" runat="server" value="0" GroupName="grpPublic" TextAlign="Left"></asp:radiobutton><font class="radio_text">&nbsp;No&nbsp;&nbsp;&nbsp;<asp:HyperLink id="hlHelpPublic" runat="server" class="main_text_bold">Help</asp:HyperLink></font></td>
												</tr>
												<tr>
													<td><asp:label id="lblApproveMemComm" runat="server" Font-Bold="True">Approve Members Comments</asp:label><font class="notes_text">*</font><br /></td>
													<td align="left"><asp:radiobutton id="rbApproveMemComm" runat="server" value="1" GroupName="grpMemComm"></asp:radiobutton><font class="radio_text">Yes</font><asp:radiobutton id="rbNotApproveMemComm" runat="server" value="0" GroupName="grpMemComm" TextAlign="Left" Checked="True"></asp:radiobutton><font class="radio_text">&nbsp;No&nbsp;&nbsp;&nbsp;<asp:HyperLink id="hlHelpAppMemComm" runat="server" cssclass="main_text_bold">Help</asp:HyperLink></font></td>
												</tr>
												<tr>
													<td><asp:label id="lblApproveMemBlogComm" runat="server" Font-Bold="True">Approve Members Blog Comments</asp:label><font class="notes_text">*</font><br /></td>
													<td align="left"><asp:radiobutton id="rbApproveMemBlogComm" runat="server" value="1" GroupName="grpMemBlogComm"></asp:radiobutton><font class="radio_text">Yes</font><asp:radiobutton id="rbNotApproveMemBlogComm" runat="server" value="0" GroupName="grpMemBlogComm" TextAlign="Left" Checked="True"></asp:radiobutton><font class="radio_text">&nbsp;No&nbsp;&nbsp;&nbsp;<asp:HyperLink id="hlHelpAppMemBlogComm" runat="server" cssclass="main_text_bold">Help</asp:HyperLink></font></td>
												</tr>
												<tr>
													<td><asp:label id="lblCountry" runat="server" Font-Bold="True">Country</asp:label><font class="notes_text">*</font></td>
													<td><asp:dropdownlist id=ddlCountry runat="server" CssClass="scrollbar" Width="204px" DataSource="<%# Page %>"></asp:dropdownlist></td>
												</tr>
												<tr>
													<td><asp:label id="lblCity" runat="server" Font-Bold="True">City/Town</asp:label><font class="notes_text">*</font></td>
													<td><asp:textbox id="txtCity" runat="server" CssClass="mail_field" Width="204px" MaxLength="50" Rows="1"></asp:textbox><asp:requiredfieldvalidator id="rvCityTown" runat="server" Display="None" ErrorMessage="Please enter city/town"
															ControlToValidate="txtCity"></asp:requiredfieldvalidator><asp:customvalidator id="cvHtmlInCity" runat="server" controltovalidate="txtCity" errormessage="HTML is not allowed in City/Town field" display="None"></asp:customvalidator></td>
												</tr>
												<tr>
													<td><asp:label id="lblZip" runat="server" Font-Bold="True">Zip/Postal Code</asp:label></td>
													<td><asp:textbox id="txtZip" runat="server" CssClass="mail_field" Width="204px" MaxLength="10" Rows="1"></asp:textbox><!--&nbsp;&nbsp;(Needed 
															only for US and Canada)--><asp:customvalidator id="cvZip" runat="server" Display="None" ErrorMessage="Please enter Zip/Postal  Code"
															ControlToValidate="ddlCountry"></asp:customvalidator><asp:customvalidator id="cvHtmlInZip" runat="server" controltovalidate="txtZip" errormessage="HTML is not allowed in Zip/Postal Code field" display="None"></asp:customvalidator></td>
												</tr>
												<tr>
													<td><asp:label id="lblShortAboutGroup" runat="server" Font-Bold="True">Short Group Description (No HTML)</asp:label><font class="notes_text">*</font></td>
													<td><asp:textbox id="txtShortAboutGroup" runat="server" CssClass="scrollbar" Width="422px" MaxLength="3"
															Rows="4" TextMode="MultiLine"></asp:textbox><asp:RequiredFieldValidator id="rvTxtShortAboutGroup" runat="server" Display="None" ErrorMessage="Please fill in Short Group Description field"
															ControlToValidate="txtShortAboutGroup"></asp:RequiredFieldValidator><asp:customvalidator id="cvHtmlInShortDesc" runat="server" controltovalidate="txtShortAboutGroup" errormessage="HTML is not allowed in Short Group Description field" display="None"></asp:customvalidator>
													</td>
												</tr>
												<tr>
													<td><asp:label id="lblAboutGroup" runat="server" Font-Bold="True"> About Group</asp:label><font class="notes_text">*</font></td>
													<td><asp:textbox id="txtAboutGroup" runat="server" CssClass="scrollbar" Width="422px" MaxLength="3"
															Rows="4" TextMode="MultiLine"></asp:textbox><asp:RequiredFieldValidator id="rvTxtAboutGroup" runat="server" Display="None" ErrorMessage="Please fill in About Group field"
															ControlToValidate="txtAboutGroup"></asp:RequiredFieldValidator>
													</td>
												</tr>
												<tr>
													<td colSpan="2" height="20"><img src="images/spacer.gif" width="100%" height="1" class="spacer_color"></td>
												</tr>
												<tr>
													<td>&nbsp;</td>
													<td align="left"><asp:button id="btnCreate" runat="server" CssClass="btn" Width="100px" Text="Create" onmouseover="ButtonMouseOver(this);" onmouseout="ButtonMouseOut(this);" onclick="btnCreate_Click"></asp:button></td>
												</tr>
											</table>
										</form>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</div>		
		</td>
		<!-- BEGIN SKYSCRAPER ADVERTISEMENT -->	
			<!--
			<td class="small" width="10">&nbsp;</td>
			<td class="border_adv" vAlign="top" width="203" height="100%">
					<table cellSpacing="1" cellPadding="0" width="100%" border="0">
							<tr>
									<td class="small" width="10">&nbsp;</td>
									<td class="advertisement" width="193"><asp:Literal id="litSkyscraperAdvertisement" runat=server></asp:literal></td>
							</tr>
					</table>
			</td>-->
			<!-- END SKYSCRAPER ADVERTISEMENT -->
	</tr>
</table>
